package com.xy.designPatterns.observer;

public class OrderService {

    public void payOrder() {
        Order order = new Order();
        order.registerObserver(new InventoryObserver());
        order.registerObserver(new LogisticsObserver());

        order.setStatus(OrderStatus.PAID);
    }
}
